<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('default/welcome')}">开始</a> / <a href="{url('group/index')}">管理员</a> / 权限组列表</div>
<div class="m10">
<form id="form" action="{url('group/edit')}">
<input type="hidden" name="fid" value="{$fid}"/>
<div class="table-head"><a href="{url('group/index')}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a><strong>权限组名称</strong> <input datatype="*" class="input w300" type="text" name="name" value="{$info['name']}"/></div>
<div class="table-head"><strong>编辑操作权限</strong></div>
<table class="table table-th">
<tr><th>系统权限组:</th><td>
    <input  name="auth[]" type="checkbox" value="admin_default"  {if in_array('admin_default',$auth)}checked="checked"{/if} /> 主界面
    <input  name="auth[]" type="checkbox" value="admin_user_password" {if in_array('admin_user_password',$auth)}checked="checked"{/if} /> 修改密码
    <input  name="auth[]" type="checkbox" value="admin_user" {if in_array('admin_user',$auth)}checked="checked"{/if} /> 管理员
    <input  name="auth[]" type="checkbox" value="admin_backup" {if in_array('admin_backup',$auth)}checked="checked"{/if} /> 数据库备份
    <input  name="auth[]" type="checkbox" value="admin_tpl" {if in_array('admin_tpl',$auth)}checked="checked"{/if} /> 模板管理
    <input  name="auth[]" type="checkbox" value="admin_group" {if in_array('admin_group',$auth)}checked="checked"{/if} /> 权限组管理
</td></tr>
<tr><th>上传权限组</th><td>
    <input  name="auth[]" type="checkbox" value="uploads_files" {if in_array('uploads_files',$auth)}checked="checked"{/if} /> 上传文件管理
    <input  name="auth[]" type="checkbox" value="uploads_config" {if in_array('uploads_config',$auth)}checked="checked"{/if} /> 上传配置
    <input  name="auth[]" type="checkbox" value="uploads_index" {if in_array('uploads_index',$auth)}checked="checked"{/if} /> 文件上传
</td></tr>
<tr><th>网站权限组</th><td>
    <input  name="auth[]" type="checkbox" value="cms_index" {if in_array('cms_index',$auth)}checked="checked"{/if} /> 内容管理
    <input  name="auth[]" type="checkbox" value="cms_diypage" {if in_array('cms_diypage',$auth)}checked="checked"{/if} /> 单页管理
    <input  name="auth[]" type="checkbox" value="cms_fragment" {if in_array('cms_fragment',$auth)}checked="checked"{/if} /> 碎片管理
    <input  name="auth[]" type="checkbox" value="cms_channel" {if in_array('cms_channel',$auth)}checked="checked"{/if} /> 栏目管理
    <input  name="auth[]" type="checkbox" value="cms_website" {if in_array('cms_website',$auth)}checked="checked"{/if} /> 站点管理
    <input  name="auth[]" type="checkbox" value="cms_special" {if in_array('cms_special',$auth)}checked="checked"{/if} /> 特性或专题
    <input  name="auth[]" type="checkbox" value="cms_module" {if in_array('cms_module',$auth)}checked="checked"{/if} /> 模型管理
    <input  name="auth[]" type="checkbox" value="cms_label" {if in_array('cms_label',$auth)}checked="checked"{/if} /> 标签管理
    <input  name="auth[]" type="checkbox" value="ad" {if in_array('ad',$auth)}checked="checked"{/if} /> 广告管理
</td></tr>
</table>
<div class="table-head mt10"><strong>菜单管理权限</strong></div>
{loop $list $rs}
<div class="table-tipbox"><h5>{htmlspecialchars_decode($rs['name'])}</h5></div>
<table class="table table-th">
    {loop $rs['menu'] $vo}
<tr><th>{htmlspecialchars_decode($vo['name'])}</th><td>
 {loop $vo['menu'] $nav} <input  name="menu[]" type="checkbox" value="{$nav['id']}"  {if in_array($nav['id'],$menu)}checked="checked"{/if}  /> {htmlspecialchars_decode($nav['name'])}{/loop}
</td></tr>
    {/loop}
</table>
{/loop}
<div class="btn fn-tac">
    <a href="{url('group/index')}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a>
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','dialog','form',function(){ 
    $('#form').forms();
})
</script>